<?php
 /**
	$numPlayers = 9;		

	$numPlayerCards = $numPlayers * 2;

	$playersCards = array_slice($deck, 0, $numPlayerCards);

	$flopPoint = $numPlayerCards + 1;
	
	$numFlop = 3;

	$flop = array_slice($deck, $flopPoint, $numFlop);

	$turnPoint = $flopPoint + $numFlop + 1;

	$numTurn = 1;

	$turn = array_slice($deck, $turnPoint, $numTurn);

	$riverPoint = $turnPoint + $numTurn + 1;

	$numRiver = 1;

	$river = array_slice($deck, $riverPoint, $numRiver);

*/

#	pr ($deal);
?>

<ul>
<?php foreach ($deal['players'] as $id => $cards): ?>
	<li style="padding: 10px;">
		<?php echo $id ?>
		<?php echo $poker->simpleDeck($cards) ?>
	</li>
<?php endforeach ?>
</ul>




<table border="1" class="pokerTable">

	<tr>
		<td></td>
		<td>p9</td>
		<td>dealer</td>
		<td>p1</td>
		<td></td>
	</tr>
	<tr>
		<td>p8</td>
		<td></td>
		<td>
			<?php echo $poker->simpleDeck($deal['flop']) ?>
			<?php echo $poker->simpleDeck($deal['turn']) ?>
			<?php echo $poker->simpleDeck($deal['river']) ?>
		</td>
		<td></td>
		<td>p2</td>
	</tr>
	<tr>
		<td>p7</td>
		<td></td>
		<td>chips</td>
		<td></td>
		<td>p3</td>
	</tr>
	<tr>
		<td></td>
		<td>p6</td>
		<td>p5</td>
		<td>p4</td>
		<td></td>
	</tr>


</table>

<style>
.pokerTable td {padding:20px 30px;background-color:green;}
.pokerTable {margin: 10px auto;}
.card {border:1px solid #ddd; padding:5px 1px;background:#fff; font-size:100%; margin:20px 2px;}
.red {color:#f00;}
.black {color:#000;}

</style>
